package com.emep.changzhi.analyse.entity.error;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author xy
 * @Description: 空气质量异常报文信息表
 * @date 2018/2/27 11:03
 * @version V1.0
 */
@Data
@Entity
@Table(name = "info_air_quality")
public class AirQuality2 implements Serializable {
    private static final long serialVersionUID = -4578156471457253269L;
    @Id
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @GeneratedValue(generator = "system-uuid")
    private String  id;
    @Column(name = "mn",columnDefinition="varchar(100) COMMENT '设备mn'")
    private String mn;
    @Column(name = "data_type",columnDefinition="varchar(100) COMMENT '数据类型'" )
    private String dataType;
    @Column(name = "area_code",columnDefinition="varchar(100) COMMENT '行政区划'" )
    private String areaCode;
    @Column(name = "content",columnDefinition="varchar(100) COMMENT '报文内容'" )
    private String content;
    @Column(name = "content_date",columnDefinition="varchar(100) COMMENT '报文时间'" )
    private String contentDate;
    @Column(name = "create_date",columnDefinition="varchar(100) COMMENT '创建时间'" )
    @OrderBy("create_date DESC")
    private String createDate =  String.valueOf(System.currentTimeMillis());
}
